//
//  YKC_CenterNavView.m
//  BoYi_WangYi
//
//  Created by 李星星 on 2017/5/12.
//  Copyright © 2017年 李星星. All rights reserved.
//

#import "Base_CenterNavView.h"

@interface Base_CenterNavView ()



@end

@implementation Base_CenterNavView

- (void) awakeFromNib {
    [super awakeFromNib];
    
//    _lineView.backgroundColor = Color_Grey92;
    
    _navTitle.textColor = [UIColor whiteColor];
    
    [_rightbutton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    _rightbutton.titleLabel.font = FontBoldSystemSize12;
    
    
    [_backButton addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
    
    [_rightbutton addTarget:self action:@selector(clickRightButton) forControlEvents:UIControlEventTouchUpInside];
}


- (void)back {
    if (self.clickBack) {
        self.clickBack();
    }
}

- (void)clickRightButton {
    if (self.clickRightBtn) {
        self.clickRightBtn();
    }
}


@end
